package cuit.pymjl;

import org.apache.http.HttpHost;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestHighLevelClient;

import java.io.IOException;

/**
 * @author Pymjl
 * @version 1.0
 * @date 2022/8/6 19:38
 **/
public class EsClient {
    public static void main(String[] args) throws IOException {
        RestHighLevelClient client = new RestHighLevelClient(
                RestClient.builder(new HttpHost("www.pymjl.com", 9200, "http")));
        client.close();

    }
}
